var http = require('http'); //引入
var server=http.createServer();
server.on('request', (req, res) => {
    res.setHeader('Content-Type','text/html;charset=utf-8');
    const ip = res.socket.remoteAddress;
    const port = res.socket.remotePort;
    console.log(`您的 IP 地址是 ${ip}，您 ${port}`);
    res.write("hello,<a href='#'>jajajj的源端口是</a>"+res.url);
    console.log('ok!!!!');
    res.end();
})
server.listen(8080, () => {
    console.log('OOOOOOOO');
});